<!DOCTYPE html>
<html>
<head>
	<title><?=$this->e( $info['title'] . ' - ' . $config['app_name'] )?></title>
	<link rel="stylesheet" href="<?=$this->e( $config['theme_url'] )?>/css/style.css" />
	<?php
	if ( isset( $head_append ) ) {
		echo $head_append;
	}
	?>
</head>
<body class="<?=$this->e( $body_class )?>">

<div class="wrap">

	<div class="headerbar">
		<h1 class="sitetitle"><a href="<?=$this->e( $config['base_url'] )?>">Vioscope</a></h1>
		<form class="searchform" action="<?=$this->e( $config['base_url'] )?>/search" method="get">
			<input class="searchfield" type="text" name="q" placeholder="Search" value="<?php echo ( isset( $_GET['q'] ) ) ? $_GET['q'] : ''; ?>" />
		</form>
		<div class="options">
			<a class="option" title="Trending" href="<?=$this->e( $config['base_url'] )?>/feed/trending">📈</a>
		</div>
	</div>

	<?=$this->section( 'content' )?>

	<div class="footer">
		<div class="left element"><?=$config['footer_text_1']?></div>
		<div class="right element"><?=$config['footer_text_2']?></div>
	</div>
</div>

<?=@$body_append?>
</body>
</html>
